package com.homeproject.trailservice.domain;


import lombok.*;
import org.neo4j.ogm.annotation.NodeEntity;
import org.springframework.data.neo4j.core.schema.GeneratedValue;
import org.springframework.data.neo4j.core.schema.Id;
import org.springframework.data.neo4j.core.schema.Node;

/**
 * Within a community group purchase, there are following entities and relationships
 *
 * Customer - participate -> Order
 * GroupManager - Initiate -> Order
 * Fruit - PartOf -> Order
 * Vegetable - PartOf -> Order
 * Provider - Prepare -> Order
 * Deliverer - Deliver -> Order
 * Deliverer - WorksFor -> DeliveryCompany
 * */

@NodeEntity(label = "Customer")
 
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@Setter
@Data
public class Customer{
    @Id
    @GeneratedValue
    protected long id;

    private String name;

    private String phoneNumber;

    private String building;

    private String room;

    private String community;

}
